package com.xbongbong.workflow.pojo.nodes;

import com.xbongbong.paas.enums.clazz.ConditionClass;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 条件组
 * @author 魏荣杰
 *
 */
@Setter
@Getter
@ToString
public class WorkflowConditionFilters {

    /**
     * 条件组内 条件
     */
    @Valid
    @Size(max = 5, message = "{dto.msg.conditionNode.conditions.Size.max}")
    private List<WorkflowConditionPojo> filter;

    private List<ConditionClass> whereList;

    /**
     * 且或 设置
     */
    private String operator;
}
